<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.io.*,java.util.*,java.text.*" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Forwarding Ticket to Next Level</title>
<script language="JavaScript" type="text/javascript">
function doValidation() {
	 var names = document.getElementById("names").value;
	 
	 if (names=="")
		{
		alert("You must select a support value!!");
		return false;
		}
	 return true;
}
</script>
</head>
<body>
<h2>Welcome, Support Executive!</h2>
<s:form action="forward_toNextLevel">
<table id="text" align="center">
<tr>
<td><s:textfield label="Forwarding Ticket No:" name="id" value= "%{id}" readonly ="true"></s:textfield></td>
<td>to</td>
<td><s:textfield label="Support Executive Level" name="nextSupportLevel" value= "%{nextSupportLevel}" readonly ="true"></s:textfield></td>
</tr>
<tr>
<td>Assigned to:</td><td><s:select list="names" name="name" id="names" headerKey="" headerValue="Select a support"/></td>
</tr>
<tr><td>
<input type="submit" name="commandbutton" value="Forward Ticket" id="mysubmit" onClick="return doValidation()"/></td></tr>
</s:form>
</body>
</html>